#include "v3d.h"
#include <v3d_interface.h>
#include <v3d_renderer.h>
#include <v3d_defs.h>

v3d::v3d(void)
{
	LOG("hello ......v3d \n");

	v3d_interface::Init();
	v3d_renderer::Init();

	v3dInterface = v3d_interface::I;
	v3dRenderer = v3d_renderer::I;

	v3dInterface->MessageImmediate(MSG_V3D_OBJECT,this);
	v3dInterface->MessageImmediate(MSG_V3D_RENDERER_OBJECT,v3dRenderer);

	v3dRenderer->MessageImmediate(MSG_V3D_OBJECT,this);
	v3dRenderer->MessageImmediate(MSG_V3D_INTERFACE_OBJECT,v3dInterface);

	v3dInterface->MessageImmediate(MSG_I_RENDER_START,NULL);
}

v3d::~v3d(void)
{

}

void v3d::MessageImmediate(int message_id, void *param)
{
	LOG("msgID %d\n", message_id);
}

void v3d::Update(int message_id, void *param)
{

}
